package org.itboys.product.service;

import javax.annotation.Resource;

import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.itboys.product.entity.ProductCount;
import org.springframework.stereotype.Service;

/**
 * 
 * @author WangRan
 * 
 * 2015年8月22日
 */
@Service
public class ProductCountService extends BaseService<ProductCount, Long>{

	@Resource(name = "productDS")
	private MongoDataSource ds;
	@Override
	protected MongoDataSource getMongoDataSource() {
		return ds;
	}

	@Override
	protected Class<ProductCount> getEntityClass() {
		// TODO Auto-generated method stub
		return ProductCount.class;
	}

}
